#while循环打印九九乘法表1
i=1
while i<=9:
    j=1
    while j<=i:
        print('{}*{}={:<2}'.format(i,j,i*j),end=' ')
        j+=1
    print('')
    i+=1
print('='*62)
m=9
while m>0:
    n=1
    while m >= n:
        print('{}*{}={:<2}'.format(m, n, m * n), end=' ')
        n += 1
    print('')
    m -= 1
